#!/usr/bin/env python3
# _*_coding:utf-8_*_
# cockroach
# email:donnie.fan@foxmail.com

def list():
    '''
    处理菜单选项，并返回最终触发动作
    :return:
    '''
    print("in the atm_control")
    control_list = {
        "1":"select",
        "2":"fetch",
        "3":"send",
        "4":"save",
        "5":"exit"
    }
    print(control_list)

    choice = input(">>:").strip()
    if len(choice) != 0 and choice.isdigit():
        if control_list[choice] == "exit":exit("退出ATM程序")
        if choice in control_list:
            action = control_list[choice]
            print(action)
        return action